#include "ReconstructionParams.h"
#include <qstringlist.h>
ReconstructionParams * ReconstructionParams::singleInstance = new ReconstructionParams();
ReconstructionParams::ReconstructionParams( QStringList * sl, int rx, int ry ,double s0, double s1, double s2, int type)
{
	destinationList = sl;
	resolutionX = rx;
	resolutionY = ry;
	spacing[0] = s0;
	spacing[1] = s1;
	spacing[2] = s2;
	datatype = type;
}

ReconstructionParams * ReconstructionParams::GetSingleInstance()
{
	return singleInstance;
}

void ReconstructionParams::SetSingleInstance( QStringList * sl /*= null*/, int rx /*= 0*/, int ry /*= 0*/,double s0 /*= 0.0*/, double s1 /*= 0.0*/, double s2 /*= 0.0*/ ,int type)
{
	singleInstance->destinationList = sl;
	singleInstance->resolutionX = rx;
	singleInstance->resolutionY = ry;
	singleInstance->spacing[0] = s0;
	singleInstance->spacing[1] = s1;
	singleInstance->spacing[2] = s2;
	singleInstance->datatype = type;
}

